import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import Vant,{Toast} from 'vant';
import 'vant/lib/index.css';
import store from './store/index'
//加载重置样式和公共样式
import '@/assets/style/reset.css';
import '@/assets/style/common.css';

//
import $axios from '@/utils/request';
Vue.prototype.$axios = $axios ; 



Vue.use(Vant);
Vue.config.productionTip = false

import mixin from './mixin/index'
Vue.mixin(mixin)


Vue.component('base-checkbox', {
  model: {
    prop: 'checked',
    event: 'change'
  },
  props: {
    checked: Boolean
  },
  template: `
    <input
      type="checkbox"
      v-bind:checked="checked"
      v-on:change="$emit('change', $event.target.checked)"
    >
  `
})

new Vue({
  // 把router挂载到vue实例
  router,
  store,
  render: h => h(App),
}).$mount('#app')
